﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ProductAdd.ascx.cs" Inherits="Admin_Product_ProductAdd" %>
<%@ Register Src="../../Common/Alert.ascx" TagName="Alert" TagPrefix="uc1" %>
<%@ Register Src="../../Common/Textbox.ascx" TagName="Textbox" TagPrefix="uc2" %>
<%@ Register Assembly="FreeTextBox" Namespace="FreeTextBoxControls" TagPrefix="FTB" %>
<div>
    <uc1:Alert ID="MessAlert1" runat="server" />
</div>
<table>
    <tr>
        <td style="width: 600px">
            <div>
                <asp:Label ID="lblLanguage" runat="server" Text="Ngôn ngữ" CssClass="text" Font-Bold="true"
                    Width="120px"></asp:Label>
                <asp:DropDownList ID="ddlLanguage" runat="server" AutoPostBack="true" CssClass="boxlongest"
                    OnSelectedIndexChanged="ddlLanguage_SelectedIndexChanged">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblCategory" Width="120px" runat="server" CssClass="text" Text="Danh mục"></asp:Label>
                <asp:DropDownList ID="ddlCategory" CssClass="boxlongest" runat="server">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblTrademark" Width="120px" runat="server" CssClass="text" Text="Thương hiệu"></asp:Label>
                <asp:DropDownList ID="ddlTradeMark" CssClass="boxlongest" runat="server">
                </asp:DropDownList>
            </div>
            <div>
                <asp:Label ID="lblProductCode" runat="server" Width="120px" CssClass="text" Text="Mã Sản phẩm"></asp:Label>
                <asp:TextBox ID="txtProductCode" runat="server" CssClass="boxlongest"
                    ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="lblTitle" runat="server" Width="120px" CssClass="text" Text="Tên Sản phẩm"></asp:Label>
                <asp:TextBox ID="txtProductName" runat="server" CssClass="boxlongest"
                    ValidationGroup="Input"></asp:TextBox><span style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="lblSize" runat="server" Width="120px" CssClass="text" Text="Kích thước"></asp:Label>
                <asp:TextBox ID="txtSize" runat="server" CssClass="boxlongest" MaxLength="200"></asp:TextBox>
            </div>
            <div>
                <asp:Label ID="lblOriginal" runat="server" Width="120px" CssClass="text" Text="Xuất xứ"></asp:Label>
                <asp:TextBox ID="txtOriginal" runat="server" CssClass="boxlongest" MaxLength="200"></asp:TextBox>
            </div>
            <div>
                <asp:Label ID="lblMeterial" Width="120px" runat="server" CssClass="text" Text="Chất liệu"></asp:Label>
                <asp:DropDownList ID="ddlMaterial" CssClass="boxlongest" runat="server">
                </asp:DropDownList>
            </div>
            --%>
            <div style="padding-bottom: 10px;">
                <table>
                    <tr>
                        <td style="width: 120px">
                            <asp:Label ID="lblColor" Width="120px" runat="server" CssClass="text" Text="Màu sắc"></asp:Label>
                        </td>
                        <td>
                            <asp:Repeater ID="rptColor" runat="server" OnItemDataBound="rptColor_ItemDataBound">
                                <ItemTemplate>
                                    <asp:Label ID="lblColorID" runat="server" Visible="false" />
                                    &nbsp;&nbsp;&nbsp;&nbsp;<asp:CheckBox ID="chkColor" runat="server" ForeColor="black" />
                                </ItemTemplate>
                            </asp:Repeater>
                            &nbsp;&nbsp;
                            <asp:Button ID="btnAddColor" runat="server" Text="Thêm" OnClick="btnAddColor_Click" />
                        </td>
                    </tr>
                </table>
            </div>
            <div>
                <asp:Label ID="lblPrice" runat="server" Width="120px" CssClass="text" Text="Giá "></asp:Label>
                <asp:TextBox ID="txtPrice" runat="server" CssClass="boxlongest" MaxLength="10"
                    ValidationGroup="Input"></asp:TextBox>&nbsp;<span style="color: Black">VNĐ</span>&nbsp;&nbsp;<span
                        style="color: #ff3333">*</span>
            </div>
            <div>
                <asp:Label ID="lblPrice1" runat="server" Width="120px" CssClass="text" Text="Giá Thị trường "></asp:Label>
                <asp:TextBox ID="txtPriceMarket" runat="server" CssClass="boxlongest"
                    MaxLength="10" ValidationGroup="Input"></asp:TextBox>&nbsp;<span style="color: Black">VNĐ</span>
            </div>
            <div>
                <asp:Label ID="lblImage" runat="server" Width="120px" CssClass="text" Text="Ảnh đại diện"></asp:Label>
                <input id="iptImage1" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
            </div>
            <div>
                <asp:Label ID="lblImage2" runat="server" Width="120px" CssClass="text" Text="Ảnh 2"></asp:Label>
                <input id="iptImage2" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
            </div>
            <div>
                <asp:Label ID="lblImg3" runat="server" Width="120px" CssClass="text" Text="Ảnh 3"></asp:Label>
                <input id="iptImage3" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
            </div>
            <div>
                <asp:Label ID="lblImg4" runat="server" Width="120px" CssClass="text" Text="Ảnh 4"></asp:Label>
                <input id="iptImage4" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
            </div>
            <div>
                <asp:Label ID="Img5" runat="server" Width="120px" CssClass="text" Text="Ảnh 5"></asp:Label>
                <input id="iptImage5" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
            </div>
        </td>
        <td style="padding-left: 30px">
        </td>
        <td style="vertical-align: text-bottom">
            <div>
                <asp:Image ID="imgImage" runat="server" Width="170px" BorderColor="Gray" BorderWidth="1px" /></div>
            <div style="padding-top: 10px">
                <asp:Image ID="Image2" runat="server" Width="50px" BorderColor="Gray" BorderWidth="1px" />&nbsp;&nbsp;
                <asp:Image ID="Image3" runat="server" Width="50px" BorderColor="Gray" BorderWidth="1px" />&nbsp;&nbsp;
                <asp:Image ID="Image4" runat="server" Width="50px" BorderColor="Gray" BorderWidth="1px" />&nbsp;&nbsp;
                <asp:Image ID="Image5" runat="server" Width="50px" BorderColor="Gray" BorderWidth="1px" />
            </div>
        </td>
    </tr>
</table>
<div>
    <asp:Label ID="lblTutorial" runat="server" Width="120px" CssClass="text" Text="Hướng dẫn sử dụng"></asp:Label>
    <input id="iptGuine" runat="server" type="file" size="30" class="boxlongest" style="color: #000000" />
    <asp:HyperLink ID="lblAttacheFile" runat="server" Target="_blank" Font-Bold="true"
        CssClass="text"></asp:HyperLink>
</div>
<div>
    <b>
        <asp:Label ID="lblDescription" Width="185px" runat="server" CssClass="text" Text="Mô tả sản phẩm"></asp:Label></b>
</div>
<div>
    <asp:TextBox ID="txtProductDescription" runat="server" TextMode="MultiLine" Height="100px"
        Width="700px"></asp:TextBox>
</div>
<div>
    <b>
        <asp:Label ID="lblSpecifiaion" Width="185px" runat="server" CssClass="text" Text="Thông số kỹ thuật"></asp:Label></b>
</div>
<div>
    <uc2:Textbox ID="FTBContent" runat="server"></uc2:Textbox>
</div>
<div style="padding-top: 15px">
    <asp:Label ID="lblTag" Width="185px" runat="server" CssClass="text" Text="Tag"></asp:Label>
</div>
<div>
    <asp:TextBox ID="txtTag" runat="server" TextMode="MultiLine" Height="100px" Width="600px"></asp:TextBox>
</div>
<div style="padding-top: 10px">
    <asp:Label ID="lblPriority" Width="120px" runat="server" CssClass="text" Text="Ưu tiên hiển thị"></asp:Label>
    <asp:DropDownList ID="ddlPriority" CssClass="boxlonger" Width="50px" runat="server">
    </asp:DropDownList>
</div>
<div style="padding: 5px 0px 5px 0px">
    <asp:CheckBox ID="chkActive" runat="server" CssClass="text" Checked="true" Text="Kích hoạt" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:CheckBox ID="chkBestSeller" runat="server" CssClass="text" Text="Sản phẩm bán chạy" />
</div>
<div style="padding: 20px 20px 0px 0px">
    <asp:Button ID="btnSave" runat="server" Text="Lưu" Width="120px" ValidationGroup="Input"
        OnClick="btnSave_Click1" />
    &nbsp;&nbsp;&nbsp;
    <asp:Button ID="btnCancel" runat="server" Text="Quay lại" Width="120px" OnClick="btnCancel_Click" />
</div>
<asp:RequiredFieldValidator ID="rfvProductName" runat="server" SetFocusOnError="true"
    ControlToValidate="txtProductName" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvProductcode" runat="server" SetFocusOnError="true"
    ControlToValidate="txtProductCode" Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RequiredFieldValidator ID="rfvPrice" runat="server" SetFocusOnError="true" ControlToValidate="txtPrice"
    Display="None" ValidationGroup="Input" Text="*"></asp:RequiredFieldValidator>
<asp:RegularExpressionValidator ID="revPrice" runat="server" ControlToValidate="txtPrice"
    Display="None" ValidationGroup="Input" Text="*" ValidationExpression="[0-9]*"></asp:RegularExpressionValidator>
<asp:ValidationSummary ID="ValidationSummary4" ShowMessageBox="true" runat="server"
    ValidationGroup="Input" ShowSummary="False" />
